<template>
    <div>
        <a-modal
            v-model:visible="visible"
            :title="currentData.title"
            @ok="handleOk"
            width="900px"
            wrapClassName="recitingDiscipline-full-modal"
            :footer="null"
            :dialogStyle="{top:'0'}"
        >
        <iframe 
            :key="iframeKey"
            :src="programDataiframeSrc" 
            ref="iframeServerEditingRef" 
            scrolling="auto" 
            width="100%"
            :height="(windowInnerHeight - 89 )+'px'"
            style="border: 0;"
        ></iframe>
    </a-modal>
    </div>
</template>
<script>
import YchConstant from "@/api/YchConstant";
export default {
    components:{

    },
    props:{

    },
    data(){
        return{
            iframeKey:null,
            programDataiframeSrc:'',
            windowInnerHeight:window.innerHeight,
            visible:false,
            currentData:{}
        }
    },
    watch:{

    },
    mounted(){
        
    },
    methods:{
        getData(row){
            this.currentData = row
            if(row.title == '宣读技术审评纪律和廉政纪律'){
                this.programDataiframeSrc = bootConfig[process.env.NODE_ENV].locality_ApI + YchConstant.SPZX_SPCY + '/spcySqsxXpjl/xcjcjlxd?sqsxid='+row.sqsxid
            }else{
                this.programDataiframeSrc = bootConfig[process.env.NODE_ENV].locality_ApI + YchConstant.SPZX_SPCY + '/spcySqsxXpjl/jcyqHzysx?sqsxid='+row.sqsxid
            }
            
            this.iframeKey = Date.now()
        },
        handleOk(){

        }
    }
}
</script>
<style lang="less">
.recitingDiscipline-full-modal{
    .ant-modal{
        padding: 0;
    }
    .ant-modal-body{
        padding: 8px
    }
}
</style>